/*
* 跟随滚动条浮动广告
* jquery.couplet插件
* Edit By MichaelRay
* Demo
*	$(function(){
*		$('.zhuanti').couplet();
*	})
*/
(function ($) {
    $.fn.extend({
        Couplet : function () {
            var obj = this;
            var menuYloc = null;
            menuYloc = parseInt($(obj).css("top").substring(0, $(obj).css("top").indexOf("px")))
            $(window).scroll(function () {
                var offset = menuYloc + $(document).scrollTop() + "px";
                $(obj).animate({top : offset}, {duration : 500, queue : false});
            });
        }
    })
})(jQuery);
